package org.aptech.hdax.pojo;

import java.io.Serializable;
import java.util.Objects;

public class SysRole implements Serializable {
    private Integer id;
    private String name;
    private String available;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvailable() {
        return available;
    }

    public void setAvailable(String available) {
        this.available = available;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysRole sysRole = (SysRole) o;
        return Objects.equals(id, sysRole.id) &&
                Objects.equals(name, sysRole.name) &&
                Objects.equals(available, sysRole.available);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, name, available);
    }
}
